<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/finance/purchasingmanagement/customerCutMaterial_add.js">
</script>

<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>

<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/quality/returnproducts_editEntity.shtml">
		<input type="hidden" class="form-control checkacc"
			name="returnProductsFormMap.id" value="${returnProductsFormMap.id }" id="id">
		<input type="hidden" class="form-control checkacc" 
			name="returnProductsFormMap.state" id="id">
		<section class="panel panel-default">
		<div class="panel-body">
		
		
		<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">退货日期</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="predictDeliver" value="${returnProductsFormMap.deliverDate }"
						name="returnProductsFormMap.deliverDate"   />
				</div>
			</div>
		
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户</label>
				<div class="col-sm-9">
					<select class="form-control" name="returnProductsFormMap.clientId">
						<option value="0">请选择</option>
						<c:forEach var="c" items="${clientFormMaps }">
								<option <c:if test="${returnProductsFormMap.clientId==c.id }">selected</c:if> value="${c.id }">${c.name }</option>
						</c:forEach>
					</select>
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">车牌</label>
				<div class="col-sm-9">
					<select class="form-control" name="returnProductsFormMap.motorcadeId">
						<option value="0">请选择</option>
						<c:forEach var="m" items="${motorcadeInfoFormMaps }">
							<option <c:if test="${returnProductsFormMap.motorcadeId==m.id }">selected</c:if> value="${m.id }">${m.licenseNo }</option>
						</c:forEach>
					</select>
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">业务员</label>
				<div class="col-sm-9">
					<select class="form-control" name="returnProductsFormMap.userId">
						<option value="0">请选择</option>
						<c:forEach var="u" items="${userFormMaps }">
							<option <c:if test="${returnProductsFormMap.userId==u.id }">selected</c:if> value="${u.id }">${u.userName }</option>
						</c:forEach>
					</select>
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">仓库</label>
				<div class="col-sm-9">
					<select class="form-control" name="returnProductsFormMap.entrepot">
						<option value="0">请选择</option>
						<option <c:if test="${returnProductsFormMap.entrepot eq 1 }">selected</c:if> value="1">一仓</option>
						<option <c:if test="${returnProductsFormMap.entrepot eq 2 }">selected</c:if> value="2">二仓</option>
						<option <c:if test="${returnProductsFormMap.entrepot eq 3 }">selected</c:if> value="3">三仓</option>
						<option <c:if test="${returnProductsFormMap.entrepot eq 4 }">selected</c:if> value="4">四仓</option>
						<option <c:if test="${returnProductsFormMap.entrepot eq 5 }">selected</c:if> value="5">五仓</option>
						<option <c:if test="${returnProductsFormMap.entrepot eq 6 }">selected</c:if> value="6">六仓</option>
					</select>
				</div>
			</div>
			
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">退货产品</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName" value="${returnProductsFormMap.returnedProducts }"
						placeholder="请输入规格" name="returnProductsFormMap.returnedProducts" id="nc_code_group_desc">
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">退货数量</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName" value="${returnProductsFormMap.returnsNumber }"
						placeholder="请输入规格" name="returnProductsFormMap.returnsNumber" id="nc_code_group_desc">
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">退货原因</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName" value="${returnProductsFormMap.reasonReturn }"
						placeholder="请输入规格" name="returnProductsFormMap.reasonReturn" id="nc_code_group_desc">
				</div>
			</div>
			
			</div>
			
			
		</div>
		<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> 
		</section>
	</form>
	<script type="text/javascript">
		jeDate({
			dateCell : "#predictDeliver",
			format : "YYYY-MM-DD hh:mm:ss",
			isinitVal : false,
			isTime : true,
			isClear : false,
			minDate : "2014-09-19 00:00:00"
		});
	</script>
	
</body>
</html>